package com.v9.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.v9.common.core.service.DefaultService;
import com.v9.system.domain.ConfigInfo;
import com.v9.system.mapper.ConfigInfoMapper;
import com.v9.system.service.ConfigInfoService;
import org.springframework.stereotype.Service;

/**
 * 参数配置 服务层实现
 *
 * @author shilun
 */
@Service
public class ConfigInfoServiceImpl extends DefaultService<ConfigInfoMapper, ConfigInfo> implements ConfigInfoService
{
    @Override
    public ConfigInfo findByKey(String key) {
        return findByOne(new QueryWrapper<ConfigInfo>().eq("key",key));
    }
}
